package types

// 新增请求参数
type NavAddRequest struct {
	Title     string `json:"title,optional" form:"title,optional"`
	Link      string `json:"link,optional" form:"link,optional"`
	Position  uint8  `json:"position,optional" form:"position,optional"`
	IsOpenNew uint8  `json:"is_open_new,optional" form:"is_open_new,optional"`
	Sort      uint8  `json:"sort,optional" form:"sort,optional"`
}

// 编辑请求参数
type NavEditRequest struct {
	Id        uint16 `json:"id,optional" form:"id,optional"`
	Title     string `json:"title,optional" form:"title,optional"`
	Link      string `json:"link,optional" form:"link,optional"`
	Position  uint8  `json:"position,optional" form:"position,optional"`
	IsOpenNew string `json:"is_open_new,optional" form:"is_open_new,optional"`
	Sort      uint8  `json:"sort,optional" form:"sort,optional"`
}

type NavQueryRequest struct {
	Id              uint16 `json:"id,optional" form:"id,optional"`
	Ids             string `json:"ids,optional" form:"ids,optional"`
	Title           string `json:"title,optional" form:"title,optional"`
	Position        uint8  `json:"position,optional" form:"position,optional"`
	IsOpenNew       string `json:"is_open_new,optional" form:"is_open_new,optional"`
	Status          string `json:"status,optional" form:"status,optional"`
	StartCreateTime string `json:"start_create_time,optional" form:"start_create_time,optional"`
	EndCreateTime   string `json:"end_create_time,optional" form:"end_create_time,optional"`
	SortField       string `json:"sort_field,optional" form:"sort_field,optional"`
	SortType        string `json:"sort_type,optional" form:"sort_type,optional"`
	Page            uint8  `json:"page,optional" form:"page,optional"`
	PageSize        int8   `json:"page_size,optional" form:"page_size,optional"`
}
